<div class="col-md-12">
	<form method="post" class="form-horizontal" action="${cxt!}/wealthcollegevedio/editVedio" id="wcvedio">
		<input type="hidden" name="wealthCollegeVedio.id" value="${updateVedio.id!}">
		<div class="form-group">
			<div class="row">
				<div class="col-md-6">
					<label class="col-md-3 control-label">${_res["wealth.vedio.cover"]}:<span class="fontColorRed">&nbsp;*</span></label>
				</div>
			</div>
		</div>
		<div class="form-group">
			<div class="col-md-1"></div>
			<div class="col-md-2">
				<div class="col-md-3 proimgfiles">
					<a href="javascript:void(0)" class="filesIconAdd" id="uploadproimgfiles">
						<!-- //ajax片段开始 -->
						<%  #ajax uploadproimgfiles: {%>
							<% if (isEmpty(uploadFiles)) { %>
								<img src="${imgCxt!}/${updateVedio.coverpictureurl!}" width="100%" height="100%" style="position: relative; z-index: 99999;">
							<% } else { %>
								<input type="hidden" name="wealthCollegeVedio.coverpictureurl" value="${uploadFiles.path!}" />
								<img src="${imgCxt!}/${uploadFiles.path!}" width="100%" height="100%" style="position: relative; z-index: 99999;">
							<% } %>
						<% } %>
						<!-- //ajax片段结尾 -->
					</a> 
					<input type="file" style="opacity: 0" id="fileuploadproimgfiles" name="coverpictureurl">
				</div>
			</div>
		</div>
		<div class="form-group">
			<div class="row">
				<div class="col-md-3">
					<label class="col-md-6 control-label">${_res["wealth.college.vedioname"]}:<span class="fontColorRed">&nbsp;*</span></label>
				</div>
				<div class="col-md-3">
					<input type="text" class="form-control" name="wealthCollegeVedio.vedioname" value="${updateVedio.vedioname!}" required aria-required="true">
				</div>
			</div>
		</div>
		<div class="form-group">
			<div class="row">
				<div class="col-md-3">
					<label class="col-md-6 control-label">${_res["wealth.college.vediourl"]}:<span class="fontColorRed">&nbsp;*</span></label>
				</div>
				<div class="col-md-3">
					<input type="text" class="form-control" name="wealthCollegeVedio.vediourl" value="${updateVedio.vediourl!}" required aria-required="true">
				</div>
			</div>
		</div>
		<div class="form-group">
			<div class="row">
				<div class="col-md-3">
					<label class="col-md-6 control-label">${_res["wealth.college.usergroup"]}:<span class="fontColorRed">&nbsp;*</span></label>
				</div>
				<div class="col-md-3">
					<#dict type="select" name="wealthCollegeVedio.usergroup" table="customer_role" multiple="multiple"
						filedName="name" filedValue="code" defaultValue="${paramMap['project.f_status']}" value="${updateVedio.usergroup!}"/></div>
			</div>
		</div>
		<div class="form-group">
			<div class="row">
				<div class="col-md-6">
					<label class="col-md-12 control-label "> 
						<% if(hasPrivilegeUrl("getWcvedioList")){ %>
							<button type="button" class="btn btn-warning" onClick="ajaxContent('/wealthcollegevedio/getWcvedioList');">
								${_res["system.return"]}
							</button>
						<% } %> 
						
						<% if(hasPrivilegeUrl("wcvedio")){ %>
							<button type="submit" class="btn btn-primary">
								${_res["system.submit"]}
							</button> 
						<% } %>
					</label>
				</div>
			</div>
		</div>
	</form>
</div>
<#submit formId="wcvedio" divId="content" />

<script>
	$(document).ready(function() {
		$("a[id^='upload']").on('click', function() {
			var id = $(this).attr("id");
			$("#file" + id).click();
		});
		//选择文件之后执行上传ajaxFileUpload2(divId,fileElementId,toUrl,uploadType,uploadFiles,callback)
		$("input[id^='fileupload']").on("change", function() {
			var fileElementId = $(this).attr("id");
			ajaxFileUpload2("uploadproimgfiles",fileElementId,"/realty/wealthcollege/editvedio.html#uploadproimgfiles","vedio","uploadFiles");
		});
	});
</script>